package com.juc.phaser.phaser16;

import java.util.concurrent.Phaser;

public class Run1 {
    /**
     * 
     * 2个线程阻塞状态 计数未达到3
     */
	public static void main(String[] args) {
		
		Phaser phaser = new Phaser(3);
		ThreadA a = new ThreadA(phaser);
		a.setName("A");
		a.start();
		
		ThreadB b = new ThreadB(phaser);
		b.setName("B");
		b.start();
	}
}
